home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: library.ucla.edu!zephyr!cloudburst!jshyun
- From: jshyun@cloudburst.seas.ucla.edu (John S. Hyun)
- Subject: Virtual Template Base Class??
- Sender: news@seas.ucla.edu (News Daemon)
- Message-ID: <DptK0J.6L1@seas.ucla.edu>
- Date: Sat, 13 Apr 1996 21:07:30 GMT
- X-Nntp-Posting-Host: cloudburst.seas.ucla.edu
- Organization: School of Engineering & Applied Science, UCLA.
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi,
-
- I am tyring to use a virtual template base class... i.e.
-
- I have a pure virtual template class "list" which specifies the virtual
- member functions append, del, insert, [], = etc. I want the derived
- classes to also be templates (template singly linked lists, doubly, etc.)
- so I tried: template <class dtype> class singlylinkedlist : virtual
- public list <dtype> { /* body */.... etc. but it doesn't work.
- I have also tried several variations of this. If anyone knows how to
- do this, please let me know!
-
- -John
-
- --
- * John S. Hyun - University of California, Los Angeles *
- * - School of Engineering and Applied Sciences *
- * *
- * e-mail: jshyun@seas.ucla.edu www: http://www.seas.ucla.edu/~jshyun *
-